package com.squirrel.michale;


import java.util.ArrayList;
import java.util.List;

/**
 * TODO function description
 *
 * @author m30026548
 * @since 2025-04-01
 */
public class Main {
    public static void main(String[] args) {
        streamTest001();


    }

    private static void streamTest001() {
        List<String> list = new ArrayList<>();
        list.add("张无忌");
        list.add("周芷若");
        list.add("赵敏");
        list.add("张强");
        list.add("张三丰");

        list.stream().filter(name->name.startsWith("张"))
                .filter(name->name.length()==3)
                .forEach(name-> System.out.println(name));
    }





}